package org.hxyjs.dao;
import org.hxyjs.entity.User;
import org.hxyjs.page.PageInfo;

import java.util.List;

public interface UserDao {
    public List<User>  getAllUsers()  throws Exception;
    public User  getUserByUno(String uno)  throws Exception;
    public List<User> getUsersByPage(PageInfo pageInfo);
    //增删改的返回值都是整数
    Integer deleteUser(String uno)  throws Exception;
    Integer updateUser(User user)  throws Exception;
    Integer addUserByUno(User user)  throws Exception;

    User getUsersWithOrders(String uno)throws Exception;

    User getAccountByAccountName(String uno)throws Exception;



}
